package com.baor.controller;


import com.baor.service.DelService;
import com.baor.util.R;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/deliver")
public class DeliverController {

    @Autowired
    private DelService delService;
    /**
     * 根据设备id查询所有投递记录
     */
    @RequestMapping("/selectAll/{id}")
    public R selectAll(@PathVariable("id") Integer id){
        return delService.selectAll(id);
    }
}
